﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using PSE.Framework.Configuration;

namespace PSE.Updater.Common.Configurations.Client
{
    /// <summary>
    /// Classe que manipula as configurações do Updater
    /// </summary>
    public class UpdateConfiguration
    {
        /// <summary>
        /// Retorna as configurações do Updater
        /// </summary>
        /// <returns>Configurações do Updater</returns>
        public static UpdateConfigurationSection GetInformation()
        {
            //UpdateConfigurationSection section = ConfigurationManager.GetSection("updateConfiguration") as UpdateConfigurationSection;

            ApplicationConfiguration config = ApplicationConfiguration.GetCurrent();

            UpdateConfigurationSection section = config.GetSection<UpdateConfigurationSection>("updateConfiguration");
            return section;
        }
    }
}
